/**
 * Created by 60132 on 2018/9/4.
 */
/**
 * Created by 60132 on 2018/4/13.
 */
var PulicBusReport={
    itemTemplate: $("#itemTemplate").html(),
    count: 0

};


PulicBusReport.addItem = function(){
    $("#itemsArea").append(this.itemTemplate);
    $("#name").attr("id", this.newId("name"));
    $("#plateNum").attr("id",this.newId("plateNum"));
    $("#telphone").attr("id",this.newId("telphone"));
}

/**
 * item获取新的id
 */
PulicBusReport.newId = function (idName) {
    this.count = this.count + 1;
    return idName + this.count;
};
/**
 * 删除item
 */
PulicBusReport.deleteItem = function (event) {
    var obj = Feng.eventParseObject(event);
    obj.parent().parent().remove();
};

$(function(){

});